<ui:composition template="/admin/templates/ui2.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:composite="http://java.sun.com/jsf/composite/primefaces"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:archer="http://java.sun.com/jsf/archer"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
	<f:metadata>
		<f:viewParam name="id" value="#{orgTypeHome.id}"></f:viewParam>
	</f:metadata>
	<ui:define name="content">
		<div class="entry">
			<p:toolbar styleClass="admin-nav-toolbar">
				<p:toolbarGroup>
					<h:outputLabel
						value="#{commonMsg.currentPositionLabel} 机构类别管理"></h:outputLabel>
				</p:toolbarGroup>
				<p:toolbarGroup align="right">
					<p:separator />
					<p:button outcome="/admin/huaxi/orgTypeList"
						value="机构类别列表"></p:button> 
				</p:toolbarGroup>
			</p:toolbar>
			<p:spacer></p:spacer>
			<h:form id="form">
				<h:panelGrid columns="2" columnClasses="col1,col2" id="panel">

					<h:outputLabel value="机构名称"></h:outputLabel>
					<h:inputText required="true" label="机构名称"
						value="#{orgTypeHome.instance.name}">
					</h:inputText>
						
					<h:outputLabel value="机构描述"></h:outputLabel>
					<h:inputTextarea value="#{orgTypeHome.instance.description}"
						label="详情" style="width:600px;height:60px;"></h:inputTextarea>
					
					<h:outputLabel value="#{commonMsg.actionLabel}"></h:outputLabel>
					<ui:fragment>
						<h:inputHidden value="#{orgTypeHome.instance.id}"></h:inputHidden>
						<p:commandButton id="saveBtn" action="#{orgTypeHome.save}"
							ajax="false" value="#{commonMsg.saveLabel}"></p:commandButton>
						<p:commandButton type="reset" value="#{commonMsg.resetLabel}"></p:commandButton>
						<p:blockUI block="panel" trigger="saveBtn" />
					</ui:fragment>
				</h:panelGrid>
				

			</h:form>
		</div>
	</ui:define>
</ui:composition>

